proc kick {nick handle chan host otbn1 botnet} {
global botnick home bcast
if {![botisop $chan]} {
  putquick "NOTICE $nick :\0034ERROR - Bot dosen't have op status (+o) on $chan"
  return 0
  }	
if {$otbn1 == ""} {
  putquick "NOTICE $nick :\0034ERROR - Invalid Syntax - Should Be - (/msg) $botnick kick <#channel> <nickname> <reason>"
  return 0
  }
if {[string tolower $otbn1] == [string tolower $botnick]} {
  putquick "NOTICE $nick :Unable To Kick Channel Services - Permission Denied."
  return 0
  }
if {[string tolower $otbn1] == [string tolower $nick]} {
if {$botnet == ""} {
  putlog "!$nick ($host)! kick $chan $otbn1"
  putquick "KICK $chan $otbn1 :You were kicked by \002$nick\002"
  putquick "NOTICE $nick :Sucessfully kicked you from $chan"
if {$bcast == "1"} {
  putquick "PRIVMSG $home :\002$nick\002 ($host) requested me to kick \002$otbn1\002 in $chan. Reason: N/A"
  }
  return 0
  }
  putlog "!$nick ($host)! kick $chan $otbn1 $botnet"
  putquick "KICK $chan $otbn1 :You were kicked by \002$nick\002 for $botnet"
  putquick "NOTICE $nick :Sucessfully kicked you from $chan"
if {$bcast == "1"} {
  putquick "PRIVMSG $home :\002$nick\002 ($host) requested me to kick \002$otbn1\002 in $chan. Reason: $botnet."
  }
  return 0
  }
if {[onchan $otbn1 $chan]} {
  set checkhand [nick2hand $otbn1 $chan]
if {[validuser $checkhand]} {
  set hand2 $checkhand
  } else {
  set hand2 $otbn1
  }
if {[checkaccess $handle $chan $hand2]} {
if {$botnet == ""} {
  putlog "!$nick ($host)! kick $chan $otbn1"
  putquick "KICK $chan $otbn1 :You were kicked by \002$nick\002"
  putquick "NOTICE $nick :Sucessfully kicked $otbn1 from $chan"
if {$bcast == "1"} {
  putquick "PRIVMSG $home :\002$nick\002 ($host) requested me to kick \002$otbn1\002 in $chan. Reason: N/A"
  }
  return 0
  }
  putlog "!$nick ($host)! kick $chan $otbn1 $botnet"
  putquick "KICK $chan $otbn1 :You were kicked by \002$nick\002 for $botnet"
  putquick "NOTICE $nick :Sucessfully kicked $otbn1 from $chan"
if {$bcast == "1"} {
  putquick "PRIVMSG $home :\002$nick\002 ($host) requested me to kick \002$otbn1\002 in $chan. Reason: $botnet."
  }
  return 0
  }
  putquick "NOTICE $nick :Unable To Execute Command - Not Enough Permissions - Permission Denied"
  putquick "NOTICE $otbn1 :\002$nick\002 ($host) tried to make me kick you in $chan"
if {$bcast == "1"} {
  putquick "PRIVMSG $home :\002$nick\002 ($host) tried to kick \002$otbn1\002 (a higher user than $nick) in $chan"
  }
  return 0
  }
  putquick "NOTICE $nick :\0034ERROR - Not Found - $otbn1 not found on $chan"
  }









